#ifndef THREADMANAGER_H_
#define THREADMANAGER_H_

#include "Ht_Hq_ThreadPool.h"

class CThreadManager
{
public:
	CThreadManager();
	CThreadManager(int iNum);
	virtual ~CThreadManager();

public:
	void Run(CJob * pJob, void * pJobData);
	void TerminateAll(void);

	void SetThreadNum(int iNum);

private:
	CHt_Hq_ThreadPool  *m_pool;
	int m_iNumOfThread;
};

inline void CThreadManager::SetThreadNum(int iNum)
{
	m_iNumOfThread = iNum;
}

#endif